package com.qf.entity;

import java.util.List;

/**
 * @author Ypl
 * @version V1.0
 * @Project September-maven
 * @Package com.qf.entity
 * @Description:
 * @Date 2022/9/23 15:27
 */
@SuppressWarnings("all")
public class Dept {

    private int id;
    private String name;

    private List<Emp> empList;

    public Dept() {
    }

    public Dept(int id, String name, List<Emp> empList) {
        this.id = id;
        this.name = name;
        this.empList = empList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Emp> getEmpList() {
        return empList;
    }

    public void setEmpList(List<Emp> empList) {
        this.empList = empList;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", empList=" + empList +
                '}';
    }
}
